﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace HYRElectric.WirePlace
{
	public partial class FormCheck : System.Windows.Forms.Form
	{
		public FormCheck(bool isBool)
		{
			this.InitializeComponent();
			base.CenterToParent();
			this.isAddUpdata = isBool;
			//base.Icon = Resource.YArchitechIcon;
			if (this.isAddUpdata)
			{
				this.radioButton1.Checked = true;
				return;
			}
			this.radioButton2.Checked = true;
		}

		private void button1_Click(object sender, EventArgs e)
		{
			if (this.radioButton1.Checked)
			{
				this.isAddUpdata = true;
			}
			else
			{
				this.isAddUpdata = false;
			}
			base.DialogResult = DialogResult.OK;
		}

		private void button2_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}

		public bool isAddUpdata = true;
	}
}
